var Mock=require('mockjs');
let Random=Mock.Random;

    var data=Mock.mock({
        "city": {
          "status":200,
          "statusText": "OK",
          "cities|100": [
            {
              "id|+1": 1,
              "nm": "@city",
              "isHot|0-1": 1,
              "py": "@string('lower', 4, 6)",
            }
          ]
        },
        "nowplaying":{
          "status":200,
          "statusText": "OK",
          "nowplayinglist|100":[
            {
              "id|+1":1,
              "img":Random.image('64x89', '#50B347', '#FFF', '热映'),
              "moviename":"@ctitle(3, 7)",
              "grade":"@float(0, 9, 1, 1)",
              "star":"@cname(),@cname(),@cname()",
              "showinfo":"今天@natural(10,5000)家影院放映@natural(10,5000)场"
            }
          ],
        },
        "detail|100":[
          {
            "id|+1":1,
            "img":"@image('64x89','@color()','#FFF','png',详情')",
            "bgcimg":Random.image('64x89', '#feecbd', '#FFF', '背景'),
            "moviename":"@ctitle(3, 7)",
            "ename":"@title(2,3)",
            "grade":"@float(0, 9, 1, 1)",
            "type":"@ctitle(2),@ctitle(2),@ctitle(2)",
            "address":"@city",
            "time":"@integer(60, 160)",
            "date":"@date()",
            "story":"@cparagraph",
            "actor|6":[{
              "actorname":"@cname",
              "actorimg":Random.image('64x89', '#eb6d20', '#008fd5', '演员'),
              "role":"@cname"
            }]
          }
        ]
        ,
        "comingsoon":{
          "status":200,
          "statusText": "OK",
          "comingsoonlist|100":[
            {
              "id|+1": 1000,
              "moviename":"@ctitle(3, 7)",
              "img":Random.image('64x89', '#7fffd4', '#0f1eeb', '即将上映'),
              "star":"@cname(),@cname(),@cname()",
              "people":"@natural(10, 1000)",
              "date":"@date()",
            }
          ],
        },
          "search|100":[
            {
            "id|+1": 2000,
            "moviename":"@ctitle(3, 7)",
            "ename":"@title(2,3)",
            "grade":"@float(0, 9, 1, 1)",
            "type":"@ctitle(2),@ctitle(2),@ctitle(2)",
            "date":"@date()",
            "img":Random.image('64x89', '#e5ff00f8', '#0f1eeb', '搜索'),
            }
          ],
        "cinema":{
          "status":200,
          "statusText": "OK",
          "cinemalist|10":[
            {
              'id|+1':1,
              "name":'@ctitle(3, 7)',
              'price':'@float(0, 30, 1, 1)',
              'address':'@county(true)',
              'distance':'@natural(0, 100)km',
              'tag|1-3':[
                {
                  'id+1':1,
                  'name':'@ctitle(2, 5)'
                }
              ]
            }
          ]
        },


      }
    )
module.exports=()=>{return data};